﻿using System;
using Shanfree.SharpMovie.Model;
using System.Collections.Generic;
using Shanfree.Framework.Utility;

namespace Shanfree.SharpMovie.IDAL
{
    public interface IList : IDBPersistenceBase<ListInfo>
    {
        IList<ListInfo> GetList(int pageSize, int pageIndex);
        IList<ListInfo> GetList(string userID, int pageSize, int pageIndex);
        /// <summary>
        /// 根据列表
        /// </summary>
        /// <param name="movieID">用户主键</param>
        /// <param name="isRecursion">是否递归获取子分类下所有列表</param>
        /// <returns></returns>
        IList<ListInfo> GetListByCatalogID(string catalogID, bool isRecursion, int pageSize, int pageIndex);
        /// <summary>
        /// 根据名称获取列表
        /// </summary>
        /// <param name="name">列表名称</param>
        /// <returns>列表实体，如不存在则实体ID为String.Empty</returns>
        ListInfo GetByName(string name);

    }
}
